<!doctype html>
<html class="no-js">
<?php include dirname(__FILE__).'/../head.php';?>
<body>
	<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->

<?php include dirname(__FILE__).'/../header.php';?>

<div class="am-cf admin-main">
		<!-- sidebar start -->
 	<?php include dirname(__FILE__).'/../sidebar.php';?>
  <!-- sidebar end -->

		<!-- content start -->
		<div class="admin-content">
			<div class="am-cf am-padding">
				<div class="am-fl am-cf">
					<strong class="am-text-primary am-text-lg">教师管理</strong> / <small>修改教师</small>
				</div>
			</div>

			<hr />

			<div class="am-g">
				
					<div class="am-u-sm-12 am-u-md-4 am-u-md-push-8">
						<form class="am-form am-form-horizontal" method="post" id="changepicForm"
						enctype="multipart/form-data"
						action="<?php echo U('Teacher/changeTeachePic')?>">
						<div class="am-panel am-panel-default">
          					<div class="am-panel-bd">
            					<div class="am-g">
              						<div class="am-u-md-4">
                						<img class="am-img-circle am-img-thumbnail" src="<?php echo __ROOT__?>/<?php echo $teacher['pic']?>" alt="" name="pic"/>
              						</div>
              						<input name="tid" value="<?php echo $teacher['id']?>" type="hidden">
              							
              						<div class="am-u-md-8">
                						<p>你好，请上传教师头像，使用192*225px的照片，这样显得更牛逼！！！ </p>
                  					<div class="am-form-group">
                    					<input type="file" id="pic" name="pic">
                    					<p class="am-form-help">请选择要上传的文件...</p>
                  					</div>
              					</div>
            				<button type="submit" id="changepic" class="am-btn am-btn-primary">保存修改</button>
							</div>
						</div>
					</form></div>
						<!--         <div class="am-panel am-panel-default"> -->
						<!--           <div class="am-panel-bd"> -->
						<!--             <div class="user-info"> -->
						<!--               <p>等级信息</p> -->
						<!--               <div class="am-progress am-progress-sm"> -->
						<div class="am-progress-bar" style="width: 60%"></div>
						<!--               </div> -->
						<!--               <p class="user-info-order">当前等级：<strong>LV8</strong> 活跃天数：<strong>587</strong> 距离下一级别：<strong>160</strong></p> -->
						<!--             </div> -->
						<!--             <div class="user-info"> -->
						<!--               <p>信用信息</p> -->
						<!--               <div class="am-progress am-progress-sm"> -->
						<div class="am-progress-bar am-progress-bar-success"
							style="width: 80%"></div>
						<!--               </div> -->
						<!--               <p class="user-info-order">信用等级：正常当前 信用积分：<strong>80</strong></p> -->
						<!--             </div> -->
						<!--           </div> -->
						<!--         </div> -->

					</div>
				<form class="am-form am-form-horizontal" method="post"
					enctype="multipart/form-data"
					action="<?php echo U('Teacher/updateTeacher')?>">	
					<input name="id" value="<?php echo $teacher['id']?>" type="hidden">
					<div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4">
						<div class="am-form-group">
							<label for="name" class="am-u-sm-3 am-form-label">教师姓名</label>
							<div class="am-u-sm-5 am-u-end">
								<input type="text" id="name" name="name" placeholder="教师姓名"
									value="<?php echo $teacher['name']?>"> 
								<small>这是必须要填的哦。</small>
							</div>
						</div>
						<div class="am-form-group">
            				<label for="name" class="am-u-sm-3 am-form-label">学校(选填)</label>
            				<div class="am-u-sm-5 am-u-end">
              					<input type="text" id="school_name"  name="school_name" value="<?php echo $teacher['school_name']?>" >
             			 		<small>示例:中央戏剧学院</small>
            				</div>
          				</div>
          				<div class="am-form-group">
            				<label for="name" class="am-u-sm-3 am-form-label">专业(选填)</label>
            				<div class="am-u-sm-5 am-u-end">
              					<input type="text" id="academy"  name="academy" value="<?php echo $teacher['academy']?>" >
              					<small>示例:文学专业</small>
            				</div>
          				</div>
						<div class="am-form-group">
            				<label for="name" class="am-u-sm-3 am-form-label">色彩</label>
            				<div class="am-u-sm-9">
	            				<div class="am-btn-group" data-am-button>
	              					<label class="am-btn am-btn-default am-btn-xs <?php if($teacher['color']=="yellow") echo "am-active"?>" name="color">
	              					
	                					<input type="radio" name="color" value="yellow"> 
	                					yellow 
	              					</label>
	              					<label class="am-btn am-btn-default am-btn-xs <?php if($teacher['color']=="green") echo "am-active"?>" name="color">
	                					<input type="radio" name="color" value="green"> 
	                						green 
	              					</label>
	              					<label class="am-btn am-btn-default am-btn-xs <?php if($teacher['color']=="white") echo "am-active"?>" name="color">
	                					<input type="radio" name="color" value="white"> 
	                						white 
	              					</label>
	              					<label class="am-btn am-btn-default am-btn-xs <?php if($teacher['color']=="red") echo "am-active"?>" name="color">
	                					<input type="radio" name="color" value="red"> 
	                						red 
	              					</label>
	              					<label class="am-btn am-btn-default am-btn-xs <?php if($teacher['color']=="gold") echo "am-active"?>" name="color">
	                					<input type="radio" name="color" value="gold"> 
	                						gold 
	              					</label>
	          					</div>
            				</div>
          				</div>
						<div class="am-form-group">
							<label for="description" class="am-u-sm-3 am-form-label">描述</label>
							<div class="am-u-sm-6 am-u-end">
								<input type="text" id="description" name="description"
									placeholder="描述" value="<?php echo $teacher['description']?>"> <small></small>
							</div>
						</div>


						<div class="am-form-group">
							<div class="am-u-sm-9 am-u-sm-push-3">
								<button type="submit"  class="am-btn am-btn-primary">保存修改</button>
							</div>
						</div>
					</div>
				</form>
			</div>
		</div>
		<!-- content end -->

	</div>

	<a href="#"
		class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu"
		data-am-offcanvas="{target: '#admin-offcanvas'}"></a>

	<footer>
		<hr>
		<p class="am-padding-left">© 2014 AllMobilize, Inc. Licensed under MIT
			license.</p>
	</footer>

	<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="<?php echo __ROOT__?>/Public/amaze/assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

	<!--[if (gte IE 9)|!(IE)]><!-->
	<script
		src="<?php echo __ROOT__?>/Public/amaze/assets/js/jquery.min.js"></script>
	<!--<![endif]-->
	<script
		src="<?php echo __ROOT__?>/Public/amaze/assets/js/amazeui.min.js"></script>

	<script src="<?php echo __ROOT__?>/Public/amaze/assets/js/app.js"></script>
	<script charset="utf-8"
		src="<?php echo __ROOT__?>/Public/amaze/editor/kindeditor.js"></script>
	<script charset="utf-8"
		src="<?php echo __ROOT__?>/Public/amaze/editor/lang/zh_CN.js"></script>
            		    
</body>
</html>
